package com.ljx.rpc.server;

import com.ljx.rpc.client.service.HelloService;
import com.ljx.rpc.core.provider.ServiceProvider;
import com.ljx.rpc.core.provider.impl.ServiceProviderImpl;
import com.ljx.rpc.core.transport.RpcServer;
import com.ljx.rpc.core.transport.socket.server.SocketServer;
import com.ljx.rpc.server.service.HelloServiceImpl;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-07  19:38
 */
public class MainServer {
    public static void main(String[] args) {
        ServiceProvider serviceProvider = new ServiceProviderImpl();
        serviceProvider.addService(HelloService.class.getName(), new HelloServiceImpl());
        RpcServer rpcServer = new SocketServer("127.0.0.1", 3600);
        rpcServer.start();
    }
}
